<?php

if(!empty($_POST))
{
	if(strcasecmp($_POST['vali'], $_SESSION['checkcode']) != 0)
	{
		echo 20000;
		die;
	}
	unset($_POST['vali']);
	$re = insert('comments', $_POST);
	if($re)
	{
		echo 20002;
		die;
	}
	else
	{
		echo 20003;
		die;
	}	
}

$banner = selectone('banner',"name='contact_banner'");
$contact = selectone('contact');
include('app/index/contact/html/contact.html');
?>